
package xdev.util.dummies;


import java.util.Enumeration;
import java.util.NoSuchElementException;

import org.junit.Ignore;


/**
 * This {@link Enumeration} include this data as string:
 * 
 * <ul>
 * <li>Hans</li>
 * <li>Fritz</li>
 * <li>Egon</li>
 * <li>Berta</li>
 * <li>Sebi</li>
 * </ul>
 * <br>
 * <br>
 * 
 * 
 * @author XDEV Software (FHAE)
 * 
 */
@Ignore
public class NameEnumeration implements Enumeration<String>
{
	
	final String[]	values		= {"Hans","Fritz","Egon","Berta","Sebi"};
	int				cursorPos	= 0;
	

	@Override
	public String nextElement()
	{
		if(cursorPos < values.length)
		{
			return values[cursorPos++];
		}
		throw new NoSuchElementException();
	}
	

	@Override
	public boolean hasMoreElements()
	{
		return cursorPos < values.length;
	}
}
